import { createApp } from "vue";
import "virtual:svg-icons-register";
import App from "./App.vue";
import { createPinia } from "pinia";
import piniaPluginPersistedstate from "pinia-plugin-persistedstate";
import router from "@/router";
import "element-plus/theme-chalk/dark/css-vars.css";
import directive from "@/utils/directive";
import MyLoading from "@/components/MyLoading/MyLoading.vue";
import NProgress from 'nprogress';
import 'nprogress/nprogress.css'; // 引入样式
import "./style.css";
import "@/styles/common.scss";

NProgress.configure({ showSpinner: false }); // 配置进度条样式

const pinia = createPinia();

// 应用持久化插件
pinia.use(piniaPluginPersistedstate);

const app = createApp(App);

app.use(pinia);

app.use(router);

app.component("MyLoading", MyLoading);

app.use(directive);


app.mount("#app");
